package com.woniuxy.exam.mapper;

import com.woniuxy.exam.entity.Book;
import com.woniuxy.exam.vo.BookVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Book record);

    Book selectByPrimaryKey(Integer id);

    List<Book> selectAll();

    int updateByPrimaryKey(Book record);

    List<BookVo> selectBookByNameAndCid(@Param("name") String name, @Param("cid") Integer cid);

    int deleteBatch(@Param("ids") int[] ids);
}